<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>商品进出库记录列表</title>
	<meta name="decorator" content="default"/>
	<style type="text/css">
		.table td {
			vertical-align: middle;
		}
	</style>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
	<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
	<div style="margin:10px 10px">
		<table id="contentTable" class="table table-striped table-bordered table-condensed">
			<thead>
				<tr>
					<th>日期</th>
					<th>初期库存</th>
					<th>入库</th>
					<th>出库</th>
					<th>出库类型</th>
					<th>结余库存</th>
				</tr>
			</thead>
			<tbody>
			<c:forEach items="${page.list}" var="detail">
				<tr>
					<td><fmt:formatDate value="${detail.create_date }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
					<td>${detail.stock }</td>
					<td>${detail.inNum }</td>
					<td>${detail.outNum }</td>
					<td>${detail.outType }</td>
					<td>${detail.endTock }</td>
				</tr>
			</c:forEach>
			</tbody>
		</table>
		<!-- 
		<div class="pagination">${page}</div>
		 -->
	</div>	
</body>
</html>